package com.godyao;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author godyao
 * @date 2022/3/16
 */
@EnableWebMvc
@EnableCaching
@EnableCreateCacheAnnotation
@EnableMethodCache(basePackages = "com.godyao.service")
@EnableTransactionManagement
@EnableJpaRepositories(basePackages = { "com.godyao.repository" })
@EntityScan(basePackages = { "com.godyao.model" })
@SpringBootApplication(scanBasePackages = "com.godyao")
public class SeckillApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeckillApplication.class, args);
    }
}
